NET MESSAGE FLOAT

This command will return a float value from the current net message.

  Syntax
Return Float=NET MESSAGE FLOAT()
  Returns

This command will return a float value from the current net message

  Description

The net message must be of the float type or the command will fail. You can determine the type using the NET MESSAGE TYPE command.

  Example Code
rem Network game can communicate numbers and strings
while inkey$()<>"x"
cls
print "HANDLE NET MESSAGES (Press X To Continue)"
print "FLOAT: ";ReturnFloat#
rem Send Part
if mouseclick()=1
print "SENDING..."
send net message float 0,mousey()*1.0
endif
rem Receive Part (from all other players)
get net message
if net message exists()=1 then print "RECEIVING..."
while net message exists()=1
if net message type()=2 then ReturnFloat#=net message float()
get net message
endwhile
endwhile
  See also

MULTIPLAYER Commands Menu
Index